<?php

namespace App\Http\Controllers\Cruise\Common;

use App\Http\Controllers\BaseController;
use App\Models\Cruise\CruiseCheckRiskProblemModel;
use Illuminate\Http\Request;

class CruiseController extends BaseController
{
    public function riskProblem(Request $request)
    {
        $riskType1 = $request->get('riskType1');

        $this->validate($request, [
            'riskType1' => 'required|integer',
        ]);

        return $this->success(CruiseCheckRiskProblemModel::riskType2Problems($riskType1));
    }
}
